const nodata = require('../tw-lib-base/no-data/props')

module.exports = {
  infoList: {
    type: Array,
    default () {
      return [
        {
          id: '1',
          title: '标题占位区1',
          tags: ['标签1'],
          props: '属性占位区1',
          desc: '描述占位区 1',
          img: '图片占位区1',
          href: '详情地址'
        },
        {
          id: '2',
          title: '标题占位区2',
          tags: ['标签2'],
          props: '属性占位区2',
          desc: '描述占位区 2',
          img: '图片占位区2',
          href: '详情地址'
        },
        {
          id: '3',
          title: '标题占位区3',
          tags: ['标签3'],
          props: '属性占位区3',
          desc: '描述占位区 3',
          img: '图片占位区3',
          href: '详情地址'
        }
      ]
    },
    name: '文本',
    filedType: 'api'
  },

  openInNewWindow: {
    type: Boolean,
    default: false,
    name: '在新容器中打开',
    filedType: 'switch'
  },

  titleColor: {
    type: String,
    default: '#333333',
    name: '标题文本颜色',
    filedType: 'color'
  },

  titleHoverColor: {
    type: String,
    default: '#047de8',
    name: '标题文本颜色',
    filedType: 'color'
  },

  tagColor: {
    type: String,
    default: '#ffffff',
    name: '标签文本颜色',
    filedType: 'color'
  },

  tagBgColor: {
    type: String,
    default: '#f4b333',
    name: '标签背景颜色',
    filedType: 'color'
  },

  propColor: {
    type: String,
    default: '#333333',
    name: '属性文本颜色',
    filedType: 'color'
  },

  descColor: {
    type: String,
    default: '#999999',
    name: '描述文本颜色',
    filedType: 'color'
  },

  borderColor: {
    type: String,
    default: '#dbdbdb',
    name: '分隔线颜色',
    filedType: 'color'
  },

  nodataTips: {
    type: String,
    default: '提示信息',
    name: '无数据时显示的提示信息',
    filedType: 'string'
  },

  clickFn: {
    type: Function,
    default: '',
    name: '列表项点击回调函数',
    nameTip: '函数的第一个参数即为触发点击事件的列表项',
    filedType: 'function'
  },

  ...nodata
}
